<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="/dreamtagslib" prefix="dt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>文章管理</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<%=path%>/css/mine.css" type="text/css" rel="stylesheet">
<link href="<%=path%>/css/custom.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<%=path%>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/dream_plugins.js"></script>
<script type="text/javascript" src="<%=path%>/js/ArticleManagement.js"></script>
<script type="text/javascript" src="<%=path %>/plugins/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=path %>/plugins/My97DatePicker/calendar.js"></script>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>
.tr_color {
	background-color: #9F88FF
}
</style>
</head>

<body>
	<div class="div_head">
		<span> <span style="float:left">当前位置是：文章管理 》 文章管理</span> <span
			style="float:right;margin-right: 8px;font-weight: bold"> <a
				style="text-decoration: none" href="./admin.php?c=goods&a=showlist">【主页】</a>
		</span>
		</span>
	</div>
	<div></div>
	<div class="div_search">
	<form action="<%=path %>/ArticleManagement_ArticleManagement?currentPage=1&pageSize=10" method="post">
		<span>
			<label>文章标题(中文)</label><input type="text" id="CTitle" onchange="addcondition(this);" />
			<label>文章标题(英文)</label><input type="text" id="CTitlee" onchange="addcondition(this);" />
			<label>文章类别</label>
			<select id="CSortid" name="tbarticle.CSortid" onchange="addcondition(this);">
				<option value="">--请选择文章类别--</option>
				<s:iterator value="#request.TbArticleSort" var="tas">
					<option value="${tas.CName }">${tas.CName }</option>
				</s:iterator>
			</select>
			<label>创建日期</label>
			<input id="startdate" type="text" onfocus="WdatePicker({isShowWeek:true})" onchange="addcondition(this);" style="width:80px;" />
			<label>至</label>
			<input id="enddate" type="text" onfocus="WdatePicker({isShowWeek:true})" onchange="addcondition(this);" style="width:80px;" />
			<input type="text" id="condition" name="condition" style="display:none;" />
			<input value="查询" type="submit" />
		</span>
	</form>
	</div>
	<div style="margin: 10px 5px;">
		<table class="table_a" id="articleTb" name="articlecategoryTb" border="1" width="100%" style="font-size: 13px;" >
			<thead>
				<tr style="font-weight: bold;">
					<td width="4%">
						<input type="checkbox"  id="all" onclick="selectCheckbox();" />序号
					</td>
					<td width="25%">文章标题(中文)</td>
					<td width="25%">文章标题(英文)</td>
					<td width="7%">文章类别</td>
					<td width="8%">创建者</td>
					<td width="8%">创建时间</td>
					<td width="8%">修改者</td>
					<td width="8%">修改时间</td>
					<td width="7%" align="center">操作</td>
				</tr>
			</thead>
			<tbody>
				<%int no=1; %>
				<s:iterator value="#request.Article" var="d">
					<tr>
						<td><input type="checkbox"  /><%=no %>
							<input type="hidden" id="id" name="id" value="${d.CId }" class="simple" />
						</td>
						<td>${d.CTitle }</td>
						<td>${d.CTitlee }</td>
						<td>${d.CSortid }</td>
						<td>${d.CCreator }</td>
						<td style="text-align: center;">
							<fmt:formatDate value="${d.CCreatetime }" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td>${d.CModifier }</td>
						<td style="text-align: center;">
							<fmt:formatDate value="${d.CModifytime }" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td><a href="<%=path%>/ArticleManagement_ArticleOperation?opt=EDIT&id=${d.CId }">修改</a>|
						<a href="javascript:DeleteArticle(${d.CId }
							, '<%=path %>/ArticleManagement_deleteArticle');">删除</a></td>
					</tr>
					<input type="hidden" value="<%no++; %>" />
				</s:iterator>
				<tr>
					<td><input type="button" value="指量删除" onclick="batchDeleteArticle();" /></td>
					<td colspan="9" style="text-align: center;">
						<s:set value="#session.Page" var="p" />
						<input type="hidden" id="currentpage" name="currentpage" value="${p.currentPage }" />
						<input type="hidden" id="pagesize" name="pagesize" value="${p.pageSize }" />
						<dt:pageBtn currentPage="${p.currentPage }" totalPage="${p.totalPages }" btnStyle="pagebtn" pageSize="10"
							url="/CMSProject/ArticleManagement_ArticleManagement" />
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</body>
</html>
